home *** CD-ROM | disk | FTP | other *** search
/ Computer Life 1997 February / Computer Life February 1997.iso / TELME / COMMS / ISDN1004.SRP < prev    next >
Text File  |  1996-06-04  |  2KB  |  104 lines

  1. rem Copyright (c) PhoneLink plc 
  2. rem SCII - ISDN (10/8/95)
  3.  
  4. label InitDevice
  5. echo off
  6. label OffToGate 
  7. rem ISDN Offline to Gate (also contains Pad to Gate)
  8. echo off
  9. echo script[51]..
  10. EstablishIsdnCall    "{PreTel}{SiteTel}{PostFix}"
  11. timeout 10,connect_fail
  12. finderr 0,BUSY,busy
  13. finderr 103,NO DIALTONE,connect_fail
  14. finderr 0,NO CARRIER,no_carrier
  15. find    "CONNECT"
  16. label PadToGate
  17. echo off
  18. echo script[53]
  19. MakeCall    "{NUA}"
  20. timeout 3,nua_bad1
  21. finderr 0,COM,nua_good
  22. find    "ZZZ"
  23. label nua_bad1
  24. echo script[58]
  25. MakeCall    "{NUA}"
  26. timeout 3,nua_bad2
  27. finderr 0,COM,nua_good
  28. find    "ZZZ"
  29. label nua_bad2
  30. echo script[58]
  31. MakeCall    "{NUA}"
  32. timeout 3,nua_fail
  33. finderr 0,CLR,cleared
  34. find    "COM"
  35. label nua_good
  36. echo script[54].
  37. end
  38.  
  39. label GateToPad
  40. echo off
  41. ClearCall
  42. timeout 10,clear_fail
  43. find "CLR"
  44. echo script[91]..
  45. end
  46.  
  47. label GateToOff
  48. rem Gate to Offline (also contains Pad to Offline)
  49. echo off
  50. echo script[92]
  51. ClearCall
  52. timeout 10,clear_fail
  53. find "CLR"
  54. label PadToOff
  55. echo off 
  56. echo script[92]
  57. BreakIsdnCall
  58. timeout 5,offline_fail
  59. find    "OFFLINE"
  60. echo script[99].
  61. end
  62.  
  63. label modem_offline
  64. ClearCall
  65. echo script[92]
  66. timeout 5,command_mode
  67. find    "CLR"
  68. label command_mode
  69. BreakIsdnCall
  70. echo script[92]
  71. timeout 5,hang_up
  72. find    "OFFLINE"
  73. echo script[99]       
  74. label hang_up
  75. abort
  76.  
  77. label connect_fail
  78. echo script[1]
  79. goto command_mode
  80.  
  81. label busy
  82. echo script[2]
  83. goto command_mode
  84.  
  85. label no_carrier
  86. echo script[3]
  87. goto command_mode
  88.  
  89. label nua_fail
  90. echo script[22]
  91. goto command_mode
  92.  
  93. label cleared
  94. echo script[21]
  95. goto command_mode
  96.  
  97. label clear_fail
  98. echo script[13]
  99. goto modem_offline
  100.  
  101. label offline_fail
  102. echo script[18]
  103. goto command_mode
  104.